import request from '@/utils/request'

// 查询码上放心-终端统计列表
export function listStatisticsHbs(query) {
  return request({
    url: '/hbs/statisticsHbs/inventory/list',
    method: 'get',
    params: query
  })
}

// msfx- 按商业统计报表数据
export function getMsfxBusinessStatisticsReport() {
  return request({
    url: '/hbs/statisticsHbs/syncMsfxBusinessStatisticsReport',
    method: 'get'
  })
}

//msfx- 按终端统计报表数据
export function getMsfxTerminalStatisticsReport() {
  return request({
    url: '/hbs/statisticsHbs/syncMsfxTerminalStatisticsReport',
    method: 'get'
  })
}

//msfx-出库补充统计
export function getMsfxOutboundSupplementStatistics() {
  return request({
    url: '/hbs/statisticsHbs/syncMsfxOutboundSupplementStatistics',
    method: 'get'
  })
}



// msfx- 按商业统计同步hby报表数据
export function getMsfxBusinessStatisticsHby() {
  return request({
    url: '/hbs/hbsBusiness/sync/syncDataToHby',
    method: 'put',
    data: {
      space_id: "4000000005826312",
      tableConfigName: "商业统计表"
    }
  })
}

//msfx- 按终端统计同步hby报表数据
export function getMsfxTerminalStatisticsHby() {
  return request({
    url: '/hbs/hbsBusiness/sync/syncDataToHby',
    method: 'put',
    data: {
      space_id: "4000000005826312",
      tableConfigName: "终端统计表"
    }
  })
}

